﻿<%@ Page Language="C#" MasterPageFile="~/view/Home.Master" AutoEventWireup="true"
    Codebehind="index.aspx.cs" Inherits="Roaming.view.index" Title="Viettel Roaming" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphHome" runat="server">
<div class="body">
	<div class="bg_tip">

		<div class="menu_botom"><a href="/view/index.html">Home</a></div>
		<div class="line_menu_botom"></div>
		<div class="bmenu_botom"><a href="/view/roaming.html">Roaming</a></div>
		<div class="line_menu_botom"></div>
		<div class="menu_botom"><a href="/view/news.html">News</a></div>
		<div class="line_menu_botom"></div>
		<div class="menu_botom"><a href="/view/help.html">Help </a></div>

	</div>
</div>
<div class="body">
	<div class="spape"></div>	
</div>
        <%if (dsTop != null && dsTop.Tables[0].Rows.Count > 0)
          {
              
              int line = 0;%>
        <%int iCount = 0; for (int i = 0; i < dsTop.Tables[0].Rows.Count; i++)
          {
              iCount += 1;
        %>
        <%
        
         %>
        <%if ((iCount % cols) == 1)
          {%>
        <div class="body">
            <%} %>
            <div class="box_icon<%=cols%>"><a href="/<%=dsTop.Tables[0].Rows[i]["categoryId"].ToString()%>/info.html"><img src="<%=ConfigurationManager.AppSettings["ImageUrl"].ToString()%><%=dsTop.Tables[0].Rows[i]["img"].ToString()%>" alt="" border="0"/></a></div>          
            <%if (((iCount % cols) == 0) || (iCount == dsTop.Tables[0].Rows.Count))
              {%>
            <div class="spape">
            </div>
        </div>  
            
                    <%int jCount = 0; for (int j = line*cols; j <(line+1)*cols; j++)
          {
              jCount += 1;
        %>
        <%if ((jCount % cols) == 1)
          {%>
        <div class="body">
            <%} %>
              <% try
               {%>
               <% if (dsTop.Tables[0].Rows[j]["categoryId"].ToString()!="") {%>
            <div class="box_icon<%=cols%>"><a href="/<%=dsTop.Tables[0].Rows[j]["categoryId"].ToString()%>/info.html"><%=dsTop.Tables[0].Rows[j]["categoryName"].ToString()%></a></div>
            <%} %>
            <%}
              catch (Exception ex)
              {
                  ex.ToString(); %>
            <%} %>
            <%if ((jCount % cols) == 0)
              {%>
            <div class="spape">
            </div>
        </div>
        <%} %>
        <%} line++;%>
               
        <%} %>        
        <%}%>
        <% 
            dsTop.Dispose();
        }%>
        
        

<div class="body">
	<div class="spape"></div>
</div>
<div class="body">
	<div class="bg_tip">
		<div class="tieude">Where are you?</div>
        <asp:DropDownList ID="DdlCity" CssClass="box_chon" runat="server" Width="105px">
        </asp:DropDownList>
        <div class="box_chon_go"><asp:Button ID="btn_go" CssClass="button" runat="server" Text="Go" OnClick="btn_go_click" />
        </div>
        </div>
</div>
<div class="body">
	<div class="spape"></div>
</div> 
      
                <%if (dsIcon != null && dsIcon.Tables[0].Rows.Count > 0)
          { int line = 0;%> 
        <%int iCount = 0; for (int i = 0; i < dsIcon.Tables[0].Rows.Count; i++)
          {
              iCount += 1;
        %>
        <%if ((iCount % cols) == 1)
          {%>
        <div class="body">
            <%} %>
            <div class="box_icon<%=cols%>"><a href="/<%=dsIcon.Tables[0].Rows[i]["categoryName"].ToString()%>.html"><img src="<%=ConfigurationManager.AppSettings["ImageUrl"].ToString()%><%=dsIcon.Tables[0].Rows[i]["Img"].ToString()%>" alt="" border="0"/></a></div>          

               <%if (((iCount % cols) == 0) || (iCount == dsIcon.Tables[0].Rows.Count))
              {%>
            <div class="spape">
            </div>
        </div>  
            
                    <%int jCount = 0; for (int j = line*cols; j <(line+1)*cols; j++)
          {
              jCount += 1;
        %>
        <%if ((jCount % cols) == 1)
          {%>
        <div class="body">
            <%} %>
              <% try
             {%>
             <% if (dsIcon.Tables[0].Rows[j]["categoryName"].ToString()!="") {%>
            <div class="box_icon<%=cols%>"><a href="/<%=dsIcon.Tables[0].Rows[j]["categoryName"].ToString()%>.html"><%=dsIcon.Tables[0].Rows[j]["categoryName"].ToString()%></a></div>
            <%} %>
             <%}
              catch (Exception ex)
              {
                  ex.ToString(); %>
            <%} %>
            <%if ((jCount % cols) == 0)
              {%>
            <div class="spape">
            </div>
        </div>
        <%} %>
        <%} line++;%>
               
        <%} %>        
        <%}%>
        <% 
            dsIcon.Dispose();
        }%>
        
        
  <div class="body">
	<div class="spape"></div>
</div>  
</asp:Content>
